REQ["The New 3D Requestor By Mike","Foord, Hope You Like it","Carry On",""]
Print "Program Loop, Press Q to exit."
Z=0
MAINLOOP
'
Procedure MAINLOOP
Shared Z
Do
K$=Upper$(Inkey$)
If K$="Q" Then REQ["User Selected Quit Option","Please Confirm","Okay!","Cancel"]
If Mouse Key=2 Then REQ["User selected mouse option","Please Confirm","Okay!","Cancel"]
If Z=1 Then REQ["Quit Confirmed","Bye","Bye",""] : End
If Z=2 Then Z=0
Loop
End Proc
'
Procedure REQ[T1$,T2$,B1$,B2$]
Shared Z
Screen Open 7,640,60,4,Hires
Screen Display 7,130,110,,
Limit Mouse 215,110 To 350,155
Show
Flash Off
Paper 0 : Cls : Curs Off
Palette $0,$444,$777,$FFF
Reserve Zone 2
If Len(T1$)>33 Then T1$=Left$(T1$,33)
If Len(T1$)>33 Then T2$=Left$(T2$,33)
If Len(T1$)>8 Then B1$=Left$(B1$,8)
If Len(T1$)>8 Then B2$=Left$(B2$,8)
Ink 1 : Bar 170,0 To 470,59
Ink 3 : Bar 171,1 To 470,59
Ink 2 : Bar 171,1 To 468,58
Ink 0 : Box 180,10 To 458,30
Ink 3 : Draw 180,30 To 458,30
Ink 3 : Draw 458,30 To 458,10
If Len(B1$)>0
Ink 3 : Box 200,37 To 270,52
Ink 0 : Draw 200,52 To 270,52
Ink 0 : Draw 270,52 To 270,37
End If
If Len(B2$)>0
Ink 3 : Box 360,37 To 430,52
Ink 0 : Draw 360,52 To 430,52
Ink 0 : Draw 430,52 To 430,37
End If
Ink 0,2
Text 184,19,T1$
Text 184,27,T2$
Text 204,47,B1$
Text 364,47,B2$
If Len(B1$)>0 Then Set Zone 1,200,37 To 270,52
If Len(B2$)>0 Then Set Zone 2,360,37 To 430,52
Do
Z=Mouse Zone
If Z=1 and Mouse Key=1 Then Ink 0 : Box 200,37 To 200,52 : Ink 3 : Draw 200,52 To 270,52 : Ink 3 : Draw 270,52 To 270,37 : Bell 70 : Wait 10 : Screen Close 7 : Limit Mouse : Pop Proc
If Z=2 and Mouse Key=1 Then Ink 0 : Box 360,37 To 430,52 : Ink 3 : Draw 360,52 To 430,52 : Ink 3 : Draw 430,52 To 430,37 : Bell 40 : Wait 10 : Screen Close 7 : Limit Mouse : Pop Proc